 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GAscheduler
{
    class Period
    {
       //TODO create CSV data file with period information
        private string m_sStartTime, m_sDuration;
        private string[] m_asDays = null;

        public string StartTime { get { return m_sStartTime; } }
        public string Duration { get { return m_sDuration; } }
        public string[] Days { get { return m_asDays; } }

        public Period(string sStartTime, string sDuration, string[] asDays)
        {
            m_sStartTime = sStartTime;
            m_sDuration = sDuration;
            for(int i = 0; i < asDays.Length; i++)
            {
                 m_asDays[i] = asDays[i];
            }
        }
        public override string ToString()
        {
            string sDays = "";
            for(int i = 0; i < m_asDays.Length; i++)
            {
                 sDays += m_asDays[i] + " ";
            }
            return m_sStartTime + " " + m_sDuration + " " + sDays;
        }
    }
}


